<template>
	<view class="buyCard">
		<view class="top">
			<view class="title">
				汇融广场智能洗车点
			</view>
			<view class="info">
				机器冲水、泡沫或吸尘器计时，擦车不计时
			</view>
		</view>
		<view class="content">
			<view class="content-top">
				<view class="single">
					<view class="time">
						单次卡
					</view>
					<view class="info">
						按次消耗、洗一次消费一张券
					</view>
				</view>
				<view class="sums">
					<view class="everyTime">
						1次15元
					</view>
					<view class="miniTime">
						20分钟/次
					</view>
				</view>
			</view>
			<view class="bottom">
				<view class="bottom_top">
					<view class="bottom_top_title">
						洗车卡 按时间计费
					</view>
					<view class="bottom_top_info">
						洗车卡 按时间计费
					</view>
				</view>
				<view class="bottom_list">
					<view class="bottom_list_item" v-for="i in 4" @click="goDetails">
						<view class="bottom_list_item_top">
							充值50元
						</view>
						<view class="bottom_list_item_bot">
							卡有效期2个月
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			goDetails(){
				uni.navigateTo({
					url:'/my_pages/buyCardDetails/buyCardDetails'
				})
			}
		}
	}
</script>
<style>
	page {
		background-image: url(../../static/icon/my/buyCardbg.png);
		background-size: 100%;
		height: 100vh;
		background-repeat: no-repeat;
	}
</style>
<style lang="scss" scoped>
	.buyCard {
		padding: 40rpx;

		.top {
			display: flex;
			flex-direction: column;

			.title {
				font-size: 32rpx;
				color: #2CB9A4;
			}

			.info {
				font-size: 26rpx;
				color: #fff;
				margin-top: 10rpx;
			}
		}

		.content {
			color: #9C673F;
			padding: 30rpx;
			margin-top: 20rpx;

			.content-top {
				display: flex;
				flex-direction: column;

				.single {
					.time {
						font-size: 34rpx;
						font-weight: 600;
					}

					.info {
						margin: 20rpx 0;
						font-size: 26rpx;
					}
				}

				.sums {
					display: flex;
					border: 2px solid;
					border-image: linear-gradient(to left, #F2E1CA, #DEB48A) 1;
					width: 50%;
					margin-top: 30rpx;
					padding: 20rpx;
					-webkit-clip-path: inset(0 round 10px);
					clip-path: inset(0 round 5px);

					.everyTime {
						color: #9C673F;
						font-weight: 500;
						font-size: 30rpx;
						font-weight: 600;
					}

					.miniTime {
						font-weight: 400;
						font-size: 26rpx;
						position: relative;
						top: 5rpx;
						left: 20rpx;
					}
				}
			}

			.bottom {
				color: #9C673F;
				margin-top: 132rpx;
				display: flex;
				flex-direction: column;

				&_top {
					&_title {
						font-size: 32rpx;
						font-weight: 600;
					}

					&_info {
						font-size: 26rpx;
						margin-top: 15rpx;
					}
				}

				&_list {
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					border-top: 0.5rpx solid rgba(255, 255, 255, 0.4);
					margin-top: 10rpx;

					&_item {
						width: 36%;
						margin-right: 20rpx;
						border: 1px solid #9C673F;
						display: flex;
						flex-direction: column;
						padding: 10rpx 20rpx;
						border-radius: 14rpx;
						margin-top: 20rpx;

						&_top {
							font-size: 30rpx;
							font-weight: 600;
						}

						&_bot {
							font-size: 26rpx;
							color: #B6835C;
						}
					}
				}
			}
		}

	}
</style>